"""
@Project ：Python_Learning 
@File    ：2.类属性与实例属性以及查找顺序.py
@IDE     ：PyCharm 
@Author  ：zhupp
@Date    ：2024/9/26 17:22 
"""

# class E:
#     pass
#
#
# class D:
#     pass
#
#
# class B(D):
#     pass
#
#
# class C(E):
#     pass
#
#
# class A(B, C):
#     pass
#
#
# print(A.__mro__)

class D:

    def print_self(self):
        print("D")

class B(D):

    def print_self(self):
        print("B")

class C(D):

    def print_self(self):
        print("C")
    pass

class A(B, C):
    pass


print(A.__mro__)

a = A()

a.print_self()